package cn.com.yiqi.wsc.dao.lottery;

import cn.com.yiqi.wsc.entity.lottery.LotteryActivity;
import cn.com.yiqi.wsc.entity.lottery.LotteryActivityExample;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface LotteryActivityMapper {
    int countByExample(LotteryActivityExample example);

    int deleteByExample(LotteryActivityExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(LotteryActivity record);

    int insertSelective(LotteryActivity record);

    List<LotteryActivity> selectByExample(LotteryActivityExample example);

    LotteryActivity selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") LotteryActivity record, @Param("example") LotteryActivityExample example);

    int updateByExample(@Param("record") LotteryActivity record, @Param("example") LotteryActivityExample example);

    int updateByPrimaryKeySelective(LotteryActivity record);

    int updateByPrimaryKey(LotteryActivity record);

    List<LotteryActivity> findActivityUrl();

    Integer updateStatusByStartTimeGTNow();

    Integer updateStatusByEndTimeLTNow();

    LotteryActivity findById(Integer id);
}